/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2022-12-01 13:52:54
 * @LastEditors: Andy
 * @LastEditTime: 2023-03-23 10:21:21
 */
const BusinessOrgConfig = () => import('@/modules/config/views/BusinessOrgConfig.vue')
const PurchaseBaseConfig = () => import('@/modules/config/views/PurchaseBaseConfig.vue')
const InvoiceInformationMaintenance = () => import('@/modules/config/views/invoiceInformation.vue')
const parentRouter = [
  {
    label: '配置中心',
    path: ''
  }
]
const routes = [
  {
    path: '/config/businessDict',
    name: 'BusinessDict',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '业务字典配置',
      keepAlive: true,
      parentTitle: [...parentRouter, { label: '基础配置', path: '/config/basic' }]
    },
    component: () => import('@/modules/config/views/dict.vue')
  },
  {
    path: '/config/businessDict/dictValue',
    name: 'BusinessDictValue',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '业务字典值配置',
      keepAlive: false,
      parentTitle: [...parentRouter, { label: '业务字典配置', path: '/config/businessDict' }]
    },
    component: () => import('@/modules/config/views/dictValue.vue')
  },
  {
    path: '/config/supplierRank',
    name: 'supplierRank',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '供应商等级管理',
      keepAlive: true,
      parentTitle: parentRouter
    },
    component: () => import('@/modules/config/views/supplierGrade.vue')
  },
  {
    path: '/config/supplierType',
    name: 'supplierType',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '供应商类型管理',
      keepAlive: true,
      parentTitle: parentRouter
    },
    component: () => import('@/modules/config/views/supplierType.vue')
  },
  {
    path: '/config/agreement',
    name: 'Agreement',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '协议管理',
      keepAlive: true,
      parentTitle: parentRouter
    },
    component: () => import('@/modules/config/views/agreement.vue')
  },
  {
    path: '/config/materialType',
    name: 'materialType',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '物料物料分类管理',
      keepAlive: true,
      parentTitle: parentRouter
    },
    component: () => import('@/modules/config/views/materialType.vue')
  },
  {
    path: '/config/material',
    name: 'material',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '物料管理',
      keepAlive: true,
      parentTitle: parentRouter
    },
    component: () => import('@/modules/config/views/material.vue')
  },
  {
    path: '/config/businessOrgConfig',
    name: 'BusinessOrgConfig',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '业务组织配置',
      keepAlive: true,
      parentTitle: parentRouter
    },
    component: BusinessOrgConfig
  },
  {
    path: '/config/purchaseBaseConfig',
    name: 'PurchaseBaseConfig',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '采购基础配置',
      keepAlive: true,
      parentTitle: parentRouter
    },
    component: PurchaseBaseConfig
  },
  {
    path: '/config/invoiceInformation',
    name: 'InvoiceInformationMaintenance',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '发票信息维护',
      keepAlive: true,
      parentTitle: parentRouter
    },
    component: InvoiceInformationMaintenance
  }
]
export default routes
